package io.github.lianghengyuan.influxdb.domain;

import java.util.Map;

public class WriteBaseEntity {

    private Long time;

    private Map<String,String> tags;

    private Map<String,Object> fields;

    private String measurement;

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public Map<String, String> getTags() {
        return tags;
    }

    public void setTags(Map<String, String> tags) {
        this.tags = tags;
    }

    public Map<String, Object> getFields() {
        return fields;
    }

    public void setFields(Map<String, Object> fields) {
        this.fields = fields;
    }

    public String getMeasurement() {
        return measurement;
    }

    public void setMeasurement(String measurement) {
        this.measurement = measurement;
    }

    public WriteBaseEntity(Map<String, String> tags, Map<String, Object> fields) {
        this.tags = tags;
        this.fields = fields;
    }

    public WriteBaseEntity() {
    }

    @Override
    public String toString() {
        return "WriteBaseEntity{" +
                "time=" + time +
                ", tags=" + tags +
                ", fields=" + fields +
                ", measurement='" + measurement + '\'' +
                '}';
    }
}
